package com.zeng.ssm.api.support.idempotent;

/**
 * Idempotent常量类
 *
 * @author zengwanlin
 * @date 2021-12-22T17:48
 */
public class IdempotentConstant {

    /**
     * 业务类型枚举
     * <p>
     * KeyIdempotent使用，用于区分业务场景，避免相同key不同业务场景的冲突
     */
    public enum BusiType {

        /**
         * 不指定业务类型
         */
        NOT_SPECIFIED("public:", "不指定业务类型");

        /**
         * 业务码
         */
        private String busiCode;

        /**
         * 业务名称
         */
        private String busiName;


        BusiType(String busiCode, String busiName) {
            this.busiCode = busiCode;
            this.busiName = busiName;
        }

        public String getBusiCode() {
            return this.busiCode;
        }

        public String getBusiName() {
            return this.busiName;
        }
    }

}
